// let system = uni.getSystemInfoSync();
// let statusBarHeight =ref(system.statusBarHeight);
// let {top,height} = uni.getMenuButtonBoundingClientRect();
// let xiaHeight = ref((top - statusBarHeight.value)*2 + height);
const system = uni.getSystemInfoSync();
export const statusBarHeight = ()=> system.statusBarHeight || 15;

export const xiaHeight = ()=> {
	// #ifdef H5
		return 40;
	// #endif
	
	// #ifndef H5
		let {top,height} = uni.getMenuButtonBoundingClientRect();
		return (top - statusBarHeight())*2 + height;
	// #endif
	
}

export const fillHeight = ()=> statusBarHeight()+xiaHeight();